<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf8">
    <style type="text/css">
        html,body{height:100%;margin:0px;padding:0px;font-family:"微软雅黑";font-size:14px;}
        #allmap{height:600px;width:100%;}
        .optionpanel{margin: 10px;}
        #r-result{width:100%;}
        #r-result p{margin:5px 0 0 10px;}
    </style>
    <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=5ee73069ba7a53469be8660d0bd470ce"></script>
    <script src="http://libs.baidu.com/jquery/1.9.0/jquery.js"></script>
    <title>地图</title>
</head>
<body>
<div id="allmap"></div>

</body>
</html>
<script type="text/javascript" src="http://developer.baidu.com/map/custom/stylelist.js"></script>
<style>.anchorBL{display:none}</style>
<script type="text/javascript">
    //初始化模板选择的下拉框

    var map = new BMap.Map("allmap",{minZoom:14,maxZoom:14});
    window.map = map;
    var point = new BMap.Point(104.075077,30.540372);
    var center_point=new BMap.Point(103.974805,30.534517);

    var marker = new BMap.Marker(point);
    // 将标注添加到地图中
    map.addOverlay(marker);
    map.centerAndZoom(center_point, 14);

    map.setMapStyle({style:'midnight'});



</script>
